package com.StarStudio.Service.Impl;


import com.StarStudio.DAO.BeansActionDAO;
import com.StarStudio.Service.BeansActionService;
import com.ruoyi.common.core.Entity.BeansAction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BeansActionServiceImpl implements BeansActionService {

    @Autowired
    private BeansActionDAO beansActionDAO;

    @Override
    public List<BeansAction> findBeansActionList(BeansAction beansAction) {
        return beansActionDAO.findBeansActionList(beansAction);
    }

    @Override
    public BeansAction findByBeansAction_id(long id) {
        return beansActionDAO.findByBeansAction_id(id);
    }

    @Override
    public List<BeansAction> findByBeansAction_user_id(long id) {
        return beansActionDAO.findByBeansAction_user_id(id);
    }

    @Override
    public void deleteBeansActionById(long id) {
        beansActionDAO.deleteBeansActionById(id);
    }

    @Override
    public void addBeansAction(BeansAction beansAction) {
        beansActionDAO.addBeansAction(beansAction);
    }

    @Override
    public void updateBeansAction(BeansAction beansAction) {
        beansActionDAO.updateBeansAction(beansAction);
    }

    @Override
    public long findAllRecordNumber() {
        return beansActionDAO.findAllRecordNumber();
    }
}
